public class SendEmailController {
	
	public String Subject{get;set;}
	public String Body{get;set;}
	
	public void sendEmail(){
		System.debug('*********In Sending Warning Email*********');
        
        Messaging.SingleEmailMessage meetingMail = new Messaging.SingleEmailMessage();
        String[] toAddresses = new String[] {'pratibh.prakash@in.fujitsu.com'};
        meetingMail.setSenderDisplayName('Pratibh Prakash');
        meetingMail.setToAddresses(toAddresses);
        meetingMail.setSubject(Subject);
        meetingMail.setBccSender(false);
        String emailbody = Body;
        meetingMail.setHtmlBody(emailbody);
        meetingMail.setSaveAsActivity(true);
        Messaging.SendEmailResult[] ers = Messaging.sendEmail(new Messaging.SingleEmailMessage[] { meetingMail });
	}
}